import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

// 导入vant全局样式
import 'vant/lib/index.css'
// 导入styles下main.css
import './styles/main.css'

// 创建 Pinia 实例
const pinia = createPinia()

// 使用插件
pinia.use(createPersistedState())

const app = createApp(App)

app.use(pinia)
app.use(router)

app.mount('#app')